An Approach on Automatic Test Data Generation with Predicate Constraint Solving Technique
نویسندگان
چکیده
Predicate constraint solving technique is an important method of automatic test data generation. By analyzing the properties and disadvantages of predicate constraint solving technique, three theorems are proposed and proved. Based on them, a new approach on automatic test data generation is presented. The linear predicate on a given path is used directly to construct the linear constraint system. Only the linear arithmetic representation for nonlinear predicate function is required to compute. Theoretical analysis and practical testing show: for the linear path, the initial input and the iteration are not required. The path is feasible if the linear constraint system can be solved, and the values of the input variables obtained are the desired test data. Otherwise, the path is infeasible. Considering the nonlinear path, test data can also be obtained by a number of iterations, or it can be guaranteed that the path is infeasible to a great extent.
منابع مشابه
Towards Automatic Generation of Parameterized Test Cases from Abstractions
Model-based tools for automatic test generation usually can handle systems of a rather limited size. Therefore, they cannot be applied directly to systems of real industrial size. Here, we propose an approach to test generation combining enumerative data abstraction, test generation methods and constraint solving. The approach allows applying enumerative test generation tools like TGV to large ...
متن کاملAutomatic Test Case Generation for General Form Boolean Expressions Based on Predicate-Driven Petri Nets
A predicate that appears in specification or code can implement a condition. In this paper, we propose a Predicate-Driven Petri Net(PDPN), which can be applied to analyze and test the behavior for the interaction between predicate operators and predicate individuals or variables or expressions. With the help of the behavior function, the dynamic properties of a PDPN and an iterative partition a...
متن کاملAutomatic generation of object oriented unit tests using genetic programming
Automating the generation of object-oriented unit tests for structural testing techniques has been challenging many researchers due to the benefits it promises in terms of cost saving and test quality improvement. It requires test sequences to be generated, each of which models a particular scenario in which the class under test is examined. The generation process aims at obtaining a preferably...
متن کاملAutomatic testing of software with structurally complex inputs
Modern software pervasively uses structurally complex data such as linked data structures. The standard approach to generating test suites for such software, manual generation of the inputs in the suite, is tedious and error-prone. This dissertation proposes a new approach for specifying properties of structurally complex test inputs; presents a technique that automates generation of such input...
متن کاملAutomatic Test Data Generation for Programs with Integer and Float Variables
This paper presents a novel approach for automated test data generation of imperative programs containing integer, boolean and/or float variables. Our approach is based on consistency techniques integrating integer and float variables. We handle statement, branch and path coverage criteria. Our purpose is thus to automatically generate test data that will cause the program to execute a statemen...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006